package com.woniuxy.factory;

import com.woniuxy.entity.Impl.Chinese;
import com.woniuxy.entity.Impl.Japanese;
import com.woniuxy.entity.Person;

/**
 * @author LinKe
 * @version 1.0
 * @date 2021/11/10 16:55
 *
 *
 * 非静态工厂实例化的模式的创建
 */
public class BeanFactoryDemoNotStatic {

    public static Person getChinese(){
        return new Chinese();
    }

    //非静态方式获得对象
    public Person getJapanese(){
        return new Japanese();
    }


}
